import request from '@/utils/request'

// 查询箱子领用列表
export function listBoxDept(query) {
  return request({
    url: '/oms/boxDept/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/oms/boxDept/initBean',
        method: 'post'
    })
}

// 查询箱子领用详细
export function getBoxDept(id) {
  return request({
    url: '/oms/boxDept/' + id,
    method: 'get'
  })
}

// 新增箱子领用
export function addBoxDept(data) {
  return request({
    url: '/oms/boxDept',
    method: 'post',
    data: data
  })
}

// 修改箱子领用
export function updateBoxDept(data) {
  return request({
    url: '/oms/boxDept',
    method: 'put',
    data: data
  })
}

// 删除箱子领用
export function delBoxDept(id) {
  return request({
    url: '/oms/boxDept/' + id,
    method: 'delete'
  })
}
